package edu.pku.sei.autounit.generator;

import edu.pku.sei.autounit.core.DefaultVariable;
import edu.pku.sei.autounit.core.Variable;
import edu.pku.sei.autounit.core.VariableFactory;
import edu.pku.sei.autounit.core.VariableGenerator;
import edu.pku.sei.autounit.filter.Filter;
import edu.pku.sei.autounit.reflect.Type;
import edu.pku.sei.autounit.reflect.WildcardType;
import edu.pku.sei.autounit.util.NameFactory;
import edu.pku.sei.autounit.util.Statements;

public class WildcardGenerator implements VariableGenerator{

	
	public Variable generate(Type type, String name, VariableFactory vf,
			NameFactory nf) {
		if(type instanceof WildcardType)
			return new DefaultVariable(type, new Statements(), "null");
		else
			return null;
	}

	
	public Variable generate(Type type, String name, Filter fliter,
			VariableFactory vf, NameFactory nf) {
		if(type instanceof WildcardType)
			return new DefaultVariable(type, new Statements(), "null");
		else
			return null;
	}

}
